package cn.broadsense.thrid.result;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 能力资源
 *
 * @author pengxin
 * @date 2023-01-13 10:26
 */
@NoArgsConstructor
@Data
public class ViasSystemStatusResult implements Serializable {

    private static final long serialVersionUID = 5981528075945981979L;

    private SystemStatusResult systemStatus;

    @NoArgsConstructor
    @Data
    public static class SystemStatusResult implements Serializable {
        private Integer storageAvailable;
        private Integer computationAvailable;
        private Integer memoryAvailable;
        private Integer currentTaskCount;
        private ResourceStatsListObjectResult resourceStatsListObject;

        @NoArgsConstructor
        @Data
        public static class ResourceStatsListObjectResult {
            private List<ResourceStatsListResult> resourceStatsList;

            @NoArgsConstructor
            @Data
            public static class ResourceStatsListResult {
                private String algorithmID;
                private Integer status;
                private Integer cpuCoreCounts;
                private Integer cpuRate;
                private Integer memoryTotalSize;
                private Integer memoryRate;
                private Integer aiCardCounts;
                private Integer aiCardRate;
            }
        }
    }
}
